package design_pattern.adapter;

public class MVCDemo {

    public static void main(String[] args) {
        WebClient webClient = new WebClient();
        webClient.request(new Servlet());
        System.out.println("--------");
        // 原来是Servlet处理请求，现在改为Controller处理请求
        WebClient webClient1 = new WebClient();
        webClient1.request(new HandlerAdapter(new Controller()));
    }
}
